<%--
  Created by IntelliJ IDEA.
  User: Z-7
  Date: 2022/3/4
  Time: 16:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="${pageContext.request.contextPath}/resource/bootstrap4/css/bootstrap.css" rel="stylesheet">
    <script type="text/javascript" src="${pageContext.request.contextPath}/resource/js/jquery-3.2.1.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/resource/bootstrap-treeview/js/bootstrap-treeview.js"></script>
    <script src="${pageContext.request.contextPath}/resource/bootstrap4/js/bootstrap.js"></script>
    <title>登录</title>
</head>
<body>
<blockquote class="blockquote text-center">
    <p class="mb-0">支付宝基金</p>
    <footer class="blockquote-footer">欢迎<cite title="Source Title">登录</cite></footer>
</blockquote>
    <div class="container">
        <form action="${pageContext.request.contextPath}/user/login" method="post">
            <div class="form-group">
                <label for="exampleInputEmail1">手机号</label>
                <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" name="username" value="${user.username}">
                <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
            </div>
            <div class="form-group">
                <label for="exampleInputPassword1">密码</label>
                <input type="password" class="form-control" name="pwd" value="${user.pwd}" id="exampleInputPassword1">
            </div>
            <div class="alert alert-primary" role="alert">
                <button type="submit" class="btn btn-primary">登录</button>
                去<a href="${pageContext.request.contextPath}/user/to_register" class="alert-link">注册</a>
                <span style="color: red">${message}</span>
            </div>
        </form>
    </div>
</body>
</html>
